package org.ydeity.lucene.repository;

import org.apache.lucene.search.Query;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.CrudRepository;

import java.io.Serializable;

public interface LuceneRepository<T, ID extends Serializable> extends CrudRepository<T, ID> {

    Iterable<T> search(Query query);

    Page<T> search(Query query, Pageable pageable);
}